(axis2-1.5 dir)\bin\wsdl2java.bat -o src -uri (insert dir of wsdl)\WebservicesManagerBean.wsdl
This page is a work in progress and the information found here is subject change.
The presence of a Web Service client example/excerpt for a platform/language does NOT mean that such a client is fully supported. The only clients officially supported for this release are JBossWS 3.1.1 clients at this time.
The beauty of Web Services is that no limitations are set on the languages or platforms from which requests can be made, only that when those requests are made, that they be correctly serialized as SOAP documents as described by the WSDL document. To that end no attempt is made here to provide samples/examples for all available platforms but to document some of the steps taken to consume the RHQ wsdl from a few popular platforms.
WSDL schema defines strongly typed language specific objects on consumption. This means that programmatic access to RHQ web services can be made using compiled types generated using your favorite WSDL consumption toolkit. For scripting language clients(e.g. PHP) there may be no such step type generation step as the interpreter will create the appropriate objects at runtime.
Correct setup of the platform/tool is assumed and no dns problems resolving machine where WSDL hosted.
(axis2-1.5 dir)\bin\wsdl2java.bat -o src -uri (insert dir of wsdl)\WebservicesManagerBean.wsdl
(apache-cxf-2.2.3 dir)\bin\wsdl2java.bat -client -compile (insert dir of wsdl)\WebservicesManagerBean.wsdl
The generated types do not compile out of the box. Exception classes need to be modified in generated source files to extend java.lang.Exception instead.
Compile and consume accordingly.
(gsoap-2.7 dir)\gsoap\bin\win32>wsdl2h.exe -o jopr.h (insert dir of wsdl)\WebservicesManagerBean.wsdl (gsoap-2.7 dir)\gsoap\bin\win32>soapcpp2.exe -i -C -I(gsoap-2.7 dir)\gsoap\import jopr.h
Compile and consume accordingly.
cd RHQ/jbossas/bin ./wsconsume.sh --package=org.jopr.ws \ --output=/home/me/myjoprclient/src/main/java \ --target=2.1 http://<Host>:<Port>/rhq-rhq-enterprise-server-ejb3/WebservicesManagerBean?wsdl
Compile and consume accordingly with wsrunclient.sh/bat or equivalent classpath.
N/A as the scripting language will generate the require objects at runtime.
See adding a web reference for details of how to use. Add was successful which is a wsdl consume.
(xmlbeans-2.4.0 dir)\bin\scomp -mx 256m -src src (insert wsdl dir)\WebservicesManagerBean.wsdl Compiled types to: xmltypes.jar
The default memory for compiler had to be incremented for compilation to succeed.
Compile and consume accordingly.
Correct setup of the platform/hosting environment is assumed and no dns problems resolving machine where WSDL hosted.
TODO
TODO
TODO
TODO
TODO
TODO
TODO